package A13_四大函数式接口;

import java.util.function.Predicate;

/**
 * @Author: KingWang
 * @Date: 2021/5/25
 * @Desc:
 **/
public class PredicateDemo {

    public static void main(String[] args) {

        Predicate<Integer> predicate = (x) -> x > 0;
        System.out.println(predicate.test(5));

    }
}
